
package cn.webrx;

public class op2 {
    public static void main(String[] args) {
        int c = 5;
        c++;
        System.out.println(++c);//7
        System.out.println(c--);//7
        System.out.println(c++);//6
        System.out.println(c++);//7
        int a = 2;
        int b = ++a; //b=3 a=3
        System.out.println(b--);//3  3  3 b=2
        System.out.println(a++);//2  3  3 a=4
        System.out.println(a);//2  2  4
        System.out.println(b);//3  2  2
    }
}
